package com.yuancheng.modules.msweb.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.yuancheng.modules.msweb.entity.EventInfo;
import com.yuancheng.modules.msweb.mapper.EventInfoMapper;
import com.yuancheng.modules.msweb.service.IEventInfoService;
import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import java.util.Map;

/**
 * @Description: 事件信息
 * @author： yuancheng
 * @date：   2020-01-08
 * @version： V1.0
 */
@Service
public class EventInfoServiceImpl extends ServiceImpl<EventInfoMapper, EventInfo> implements IEventInfoService {

    @Override
    public Page<EventInfo> queryPageList(Page<EventInfo> pageList, EventInfo eventInfo) {
        return pageList.setRecords(baseMapper.queryPageList(eventInfo));
    }

    @Override
    public int updateReadState(Map<String, Object> params) {
        return this.baseMapper.updateReadState(params);
    }
}
